package cn.makabaka.epidemic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.Value;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * <p>
 *
 * </p>
 *
 * @author 庆宝
 * @since 2022-07-07
 */
@Getter
@Setter
@Validated
@ApiModel(value = "Comein对象", description = "")
public class Comein implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @NotNull
    @ApiModelProperty("户主姓名")
    private String username;

    @ApiModelProperty("来访人姓名")
    private String inname;

    @ApiModelProperty("来访人性别")
    private String insex;

    //    @Pattern(regexp="^[1-9]\\d*$")
    @ApiModelProperty("来访人年龄")
    private String inage;

    @ApiModelProperty("来访人与户主关系")
    private String relationship;

    @ApiModelProperty("来访日期")
    private String data1;

    @ApiModelProperty("离开日期")
    private String data2;

    @ApiModelProperty("电话号码")
    private String userphone;

    @ApiModelProperty("家庭地址")
    private String useraddress;

    @ApiModelProperty("体温")
    private String temperature;

    @ApiModelProperty("来访事由")
    private String excuse;

    @ApiModelProperty("审核状态")
    private String state;


}
